#!/bin/sh
root_dir=/home/fengys/tools/stanford-tools
seg_dir=${root_dir}/stanford-segmenter-2013-06-20
pos_dir=${root_dir}/stanford-postagger-full-2013-06-20
seg_jar1=${seg_dir}/seg.jar
seg_jar2=${seg_dir}/stanford-segmenter-3.2.0-sources.jar
pos_jar1=${pos_dir}/stanford-postagger.jar
pos_jar2=${pos_dir}/stanford-postagger-3.2.0.jar
pos_jar3=${pos_dir}/stanford-postagger-3.2.0-src.jar

main_dir=`pwd`/preprocessing/doc_pre/ja_code
echo $main_dir
corpora_dict_dir=${seg_dir}/data
ser_dict=${seg_dir}/data/dict-chris6.ser.gz
classifier=${seg_dir}/data/ctb.gz
tagger=${pos_dir}/models/chinese-distsim.tagger
text=`pwd`/news
rootDir=~/data/Chinese_Queries_Related_Source_Corpus/data/new/doc-pro/news
type=news
java -mx1024m -Dfile.encoding=UTF-8 -classpath ${main_dir}:${seg_jar1}:${seg_jar2}:${pos_jar1}:${pos_jar2}:${pos_jar3} SegnPOS ${corpora_dict_dir} ${ser_dict} ${classifier} ${tagger} ${text} ${rootDir} ${type}
text=`pwd`/web
rootDir=~/data/Chinese_Queries_Related_Source_Corpus/data/new/doc-pro/web
type=web
java -mx1024m -Dfile.encoding=UTF-8 -classpath ${main_dir}:${seg_jar1}:${seg_jar2}:${pos_jar1}:${pos_jar2}:${pos_jar3} SegnPOS ${corpora_dict_dir} ${ser_dict} ${classifier} ${tagger} ${text} ${rootDir} ${type}
